<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title> 특정범위에서의 정수 반환 함수 </title>

<script>
function myRandom(min, max){
	return Math.floor(Math.random()*(max-min)) + min;
}
console.log( myRandom(10,30) );	
console.log( myRandom(-10,20) );	
console.log( myRandom(20,40) );	
</script>

</head>

<body>
닝라
</body>
</html>
